//
//  RectangleShape1.swift
//  ArchitectGenerics
//
//  Created by 姚胜龙 on 2017/6/27.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

import UIKit

//长方形
class RectangleShape1: ShapeProtocol {
    
    var width:Float
    var height:Float
    init(width:Float,height:Float) {
        self.width = width
        self.height = height
    }

    func accept(visitor: ShapeVisitorProtocol) {
        visitor.visite(rectangle: self)
    }
}
